<!DOCTYPE html>
<html lang="en">
<head>
<title>huangliusong</title>
<script src="./vue.js"></script>
</head>
 
<body>
	<div id="root">
		<child @click.native="handleClick"></child>
	</div>

	<script type="text/javascript">
		Vue.component('child',{
			template:"<div @click='handleClick'>aa</div>"
			
		})
		var vm=new Vue({
			el:"#root",
			methods:{
				handleClick:function(){
					alert()
				}
			}
		})
	</script>
</body>

</html>